package com.sauron.starter.vo;

import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "ymlvo")
public class YMLVO {

    private String name;
    private int age;
    private String gender;
    private String description;
    private String[] dataArray;
    private List<DataVO> dataList;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String[] getDataArray() {
        return dataArray;
    }

    public void setDataArray(String[] dataArray) {
        this.dataArray = dataArray;
    }

    public List<DataVO> getDataList() {
        return dataList;
    }

    public void setDataList(List<DataVO> dataList) {
        this.dataList = dataList;
    }

    @Override
    public String toString() {
        return "YMLVO{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", description='" + description + '\'' +
                ", dataArray=" + Arrays.toString(dataArray) +
                ", dataList=" + dataList +
                '}';
    }
}
